package com.zm.Study04_BuffereOutputStream;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class BufferedOutputStreamDemo01 {

    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("D:\\project\\IDEAPROJECT\\JavaIO\\src\\main\\resources\\static\\BufferedOutStreamTxt\\bos.txt");
        BufferedOutputStream bos=new BufferedOutputStream(fos);
        bos.write("hello ".getBytes());
        bos.write("world\n".getBytes());
        bos.close();
        fos.close();
    }
}
